#include "ConstNumberNode.h"

using namespace std;

namespace CExpression
{
	void ConstNumberNode::Eval(ExecuteContext &context)
	{
		context.SetGlobalTempNum(this->doubleValue);
		context.SetTempResultType(ExecuteRunTimeType::Double);
	}

	shared_ptr<Node> ConstNumberNode::Clone(Expression &parent)
	{
		shared_ptr<Node> result(new ConstNumberNode(this->doubleValue));
		return result;
	}
}